package org.tg.model.activity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.tg.enums.CouponStatus;
import org.tg.model.base.BaseEntity;

import java.util.Date;

/**
 * @Author Glow
 * @Date 2023-06-23 15:19:46
 * @Description 优惠券领取记录表
 * @Version 1.0
 */
@Data
@ApiModel(description = "优惠券领取记录表")
@TableName("coupon_use")
public class CouponUse extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "购物券ID")
    @TableField("coupon_id")
    private Long couponId;

    @ApiModelProperty(value = "用户ID")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "订单ID")
    @TableField("order_id")
    private Long orderId;

    @ApiModelProperty(value = "购物券状态")
    @TableField("coupon_status")
    private CouponStatus couponStatus;

    @ApiModelProperty(value = "领券时间")
    @TableField("get_time")
    private Date getTime;

    @ApiModelProperty(value = "使用时间")
    @TableField("using_time")
    private Date usingTime;

    @ApiModelProperty(value = "支付时间")
    @TableField("used_time")
    private Date usedTime;

    @ApiModelProperty(value = "过期时间")
    @TableField("expire_time")
    private Date expireTime;

}

